package user.blog.post.comments;

import user.profile.Flags;

public enum CommentFlags {
	TEXT("texto"), AUTHOR("autor"), CID("cid"), 
	SESSIONID("idSession"), POSTID("idPost");

	private String flag;
	
	CommentFlags(String flag) {
		this.flag = flag;
	}
	
	/**
	 * Provides the {@link String} that represents the flag.
	 * 
	 * @return The flag in a {@link String} format.
	 */
	public String getFlag() {
		return flag;
	}
	
	/**
	 * This method return all the flags i this enum.
	 * 
	 * @return The flags in a {@link String} format inside the array.

	 */
	public static String[] getFlags() {
		String[] flags = new String[Flags.values().length];
		for (int i = 0; i < flags.length; i++) {
			flags[i] = Flags.values()[i].getFlag();
		}
		return flags;
	}
}